package ooday02.homework.PersonCase1;

public class Person {
    String name;
    int age;
    String address;

    Person() {
    }

    Person(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    void eat() {
        System.out.println(name + "在吃东西...");
    }

    void sleep() {
        System.out.println(name + "在睡觉...");
    }

    void sayHi() {
        System.out.println(name + "今年" + age + "岁，住在" + address);
    }

}
